home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscClockPalette / MiscClockView.subproj / MiscClockView_MiscTime.m < prev    next >
Encoding:
Text File  |  1995-04-12  |  968 b   |  36 lines

  1. //
  2. //    MiscClockView_MiscTime.m -- a simple view class for displaying date/time
  3. //        Written by Scott Anguish Copyright (c) 1993 by Scott Anguish.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <sys/time.h>    
  15.  
  16. #import "MiscClockView_MiscTime.h"
  17. #import <misckit/MiscTime.h>
  18.  
  19.  
  20. @implementation MiscClockView(MiscTime)
  21.  
  22. - setMiscTime:(MiscTime *)aTime
  23. {
  24.     [self setSeconds:[aTime second]];
  25.     [self setMinutes:[aTime minute]];
  26.     [self setHours:[aTime hour]];
  27.     [self setWeekday:[aTime dayOfWeek]];
  28.     [self setDate:[aTime day] + 1];
  29.     [self setMonth:[aTime month]];
  30.     [self setYear:[aTime year]];
  31.     [self display];
  32.     return self;
  33. }
  34.  
  35. @end
  36.